function* dataConsumer() {
    console.log('start')
    console.log(`1.${yield}`)
    console.log(`2.${yield}`)
    return 'result';
}

let gen = dataConsumer()
gen.next()
gen.next('hello')
gen.next('ok')
// console.log(gen.next())